package ooad.gof.factory.springFactory;

import ooad.gof.factory.Driver;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Client {
    public static void main(String args[]){
        ApplicationContext context = new ClassPathXmlApplicationContext("/ooad/gof/factory/springFactory/applicationContext.xml");
        Driver driver = (Driver) context.getBean("driver");
        driver.drive();
    }
    
}
